projects
/
project
/
bcm63xx
/
atf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3faf74
)
hikey960: EDMAC: leave channel 0 as secure
author
Ryan Grachek
<
[email protected]
>
Fri, 11 Jan 2019 14:33:00 +0000
(08:33 -0600)
committer
Ryan Grachek
<
[email protected]
>
Thu, 31 Jan 2019 15:03:11 +0000
(09:03 -0600)
Channel 0 is used to communicate with LPM3, a coprocessor
for power management. Leave it as secure.
Signed-off-by: Ryan Grachek <
[email protected]
>
plat/hisilicon/hikey960/hikey960_bl31_setup.c
patch
|
blob
|
history
diff --git
a/plat/hisilicon/hikey960/hikey960_bl31_setup.c
b/plat/hisilicon/hikey960/hikey960_bl31_setup.c
index 67b06f498cc26a3f2da00f74459cc1bad839ed72..c3fcc38046552e24850117e6d7c8967a1ca4cd96 100644
(file)
--- a/
plat/hisilicon/hikey960/hikey960_bl31_setup.c
+++ b/
plat/hisilicon/hikey960/hikey960_bl31_setup.c
@@
-154,7
+154,8
@@
static void hikey960_edma_init(void)
non_secure = EDMAC_SEC_CTRL_INTR_SEC | EDMAC_SEC_CTRL_GLOBAL_SEC;
mmio_write_32(EDMAC_SEC_CTRL, non_secure);
- for (i = 0; i < EDMAC_CHANNEL_NUMS; i++) {
+ /* Channel 0 is reserved for LPM3, keep secure */
+ for (i = 1; i < EDMAC_CHANNEL_NUMS; i++) {
mmio_write_32(EDMAC_AXI_CONF(i), (1 << 6) | (1 << 18));
}
}